home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Windows & Frames / animated-window-opener.izs next >
Text File  |  2005-07-29  |  2KB  |  99 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Animated Window Opener 
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION>Opens a secondary window that expands to cover the entire screen before loading the specified document into it.
  7. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>windows, remotes, frames<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13. <!-- Directions: Simply insert the below into the <body> section of your page: Change the url in "mylocation" to your own. -->
  14. <script>
  15. <!--
  16.  
  17. var mylocation="../index.html"
  18. var winheight=100
  19. var winsize=100
  20. var x=5
  21.  
  22. function go(){
  23. win2=window.open("","","scrollbars")
  24. if (!document.layers&&!document.all){
  25. win2.location=mylocation
  26. return
  27. }
  28. win2.resizeTo(100,100)
  29. win2.moveTo(0,0)
  30. go2()
  31. }
  32. function go2(){
  33. if (winheight>=screen.availHeight-3)
  34. x=0
  35. win2.resizeBy(5,x)
  36. winheight+=5
  37. winsize+=5
  38. if (winsize>=screen.width-5){
  39. win2.location=mylocation
  40. winheight=100
  41. winsize=100
  42. x=5
  43. return
  44. }
  45. setTimeout("go2()",50)
  46. }
  47. //-->
  48. </script>
  49. <a href="javascript:go()" onMouseover="window.status='open window';return true" onMouseout="window.status=''" >Open window</a>
  50.  
  51. <!-- END OF SCRIPT -->
  52. <!/SCRIPT>
  53.  
  54. <!PREVIEW>
  55. <!-- START OF SCRIPT -->
  56. <!-- Directions: Simply insert the below into the <body> section of your page: Change the url in "mylocation" to your own. -->
  57. <script>
  58. <!--
  59.  
  60. var mylocation="../index.html"
  61. var winheight=100
  62. var winsize=100
  63. var x=5
  64.  
  65. function go(){
  66. win2=window.open("","","scrollbars")
  67. if (!document.layers&&!document.all){
  68. win2.location=mylocation
  69. return
  70. }
  71. win2.resizeTo(100,100)
  72. win2.moveTo(0,0)
  73. go2()
  74. }
  75. function go2(){
  76. if (winheight>=screen.availHeight-3)
  77. x=0
  78. win2.resizeBy(5,x)
  79. winheight+=5
  80. winsize+=5
  81. if (winsize>=screen.width-5){
  82. win2.location=mylocation
  83. winheight=100
  84. winsize=100
  85. x=5
  86. return
  87. }
  88. setTimeout("go2()",50)
  89. }
  90. //-->
  91. </script>
  92. <a href="javascript:go()" onMouseover="window.status='open window';return true" onMouseout="window.status=''" >Open window</a>
  93.  
  94.  
  95.  
  96. <!-- END OF SCRIPT -->
  97. <!/PREVIEW>
  98.  
  99. <!RELATED>NONE<!/RELATED>